package com.cash.channel.api.service;

import com.cash.channel.api.exception.CashChannelException;
import com.cash.channel.api.model.ApiRequestModel;
import com.cash.channel.api.model.ApiResponseModel;
import com.cash.channel.api.model.channel.ChannelModel;
import com.cash.common.model.Result;

/**
 * @blame taihao
 */
public interface ApiService {

    /**
     * 通用调用方法
     * @param apiRequestModel api通用请求model
     * @return api通用返回model
     */
    ApiResponseModel api(ApiRequestModel apiRequestModel);

    Result<ChannelModel> getChannelInfoByCode(String channelCode) throws CashChannelException;

    Result<ChannelModel> getChannelInfoByChannelId(String channel);
}
